package p270jp.pxv.android.viewholder;

import android.view.LayoutInflater;
import android.view.ViewGroup;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import p216hn.DefaultConstructorMarker;
import p270jp.pxv.android.R;
import p314lg.ViewHolderSearchResultPremiumTrialHeaderBinding;
import p325m0.MutabilityOwnership;
import p521th.FlexibleItemAdapterSolidItem;
import p521th.SolidItemViewHolder;

/* compiled from: SearchResultPremiumTrialHeaderSolidItem.kt */
/* renamed from: jp.pxv.android.viewholder.SearchResultPremiumTrialHeaderSolidItem */
/* loaded from: classes2.dex */
public final class SearchResultPremiumTrialHeaderSolidItem extends FlexibleItemAdapterSolidItem {
    public static final int $stable = 0;
    private final int premiumTrialExpireDays;

    /* compiled from: SearchResultPremiumTrialHeaderSolidItem.kt */
    /* renamed from: jp.pxv.android.viewholder.SearchResultPremiumTrialHeaderSolidItem$SearchResultPremiumTrialHeaderViewHolder */
    /* loaded from: classes2.dex */
    public static final class SearchResultPremiumTrialHeaderViewHolder extends SolidItemViewHolder {
        public static final Companion Companion = new Companion(null);

        /* compiled from: SearchResultPremiumTrialHeaderSolidItem.kt */
        /* renamed from: jp.pxv.android.viewholder.SearchResultPremiumTrialHeaderSolidItem$SearchResultPremiumTrialHeaderViewHolder$Companion */
        /* loaded from: classes2.dex */
        public static final class Companion {
            private Companion() {
            }

            public /* synthetic */ Companion(DefaultConstructorMarker eVar) {
                this();
            }

            public final SearchResultPremiumTrialHeaderViewHolder createViewHolder(ViewGroup viewGroup, int i) {
                MutabilityOwnership.m3745m(viewGroup, "parent");
                ViewDataBinding c = DataBindingUtil.m11370c(LayoutInflater.from(viewGroup.getContext()), R.layout.view_holder_search_result_premium_trial_header, viewGroup, false);
                MutabilityOwnership.m3746l(c, "inflate(\n               …lse\n                    )");
                return new SearchResultPremiumTrialHeaderViewHolder((ViewHolderSearchResultPremiumTrialHeaderBinding) c, i, null);
            }
        }

        private SearchResultPremiumTrialHeaderViewHolder(ViewHolderSearchResultPremiumTrialHeaderBinding a9Var, int i) {
            super(a9Var.f2666e);
            a9Var.f21326q.setText(String.valueOf(i));
        }

        public /* synthetic */ SearchResultPremiumTrialHeaderViewHolder(ViewHolderSearchResultPremiumTrialHeaderBinding a9Var, int i, DefaultConstructorMarker eVar) {
            this(a9Var, i);
        }

        @Override // p521th.SolidItemViewHolder
        public void onBindViewHolder(int i) {
        }
    }

    public SearchResultPremiumTrialHeaderSolidItem(int i) {
        this.premiumTrialExpireDays = i;
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public int getSpanSize() {
        return 2;
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public SolidItemViewHolder onCreateViewHolder(ViewGroup viewGroup) {
        MutabilityOwnership.m3745m(viewGroup, "parent");
        return SearchResultPremiumTrialHeaderViewHolder.Companion.createViewHolder(viewGroup, this.premiumTrialExpireDays);
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public boolean shouldBeInserted(int i, int i2, int i3, int i4) {
        return i2 == 0;
    }
}
